import HttpUtil from '@/common/HttpUtil'

const userApi = {
  login (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/sys/user/login'
    return HttpUtil.postJSON(postUrl, params)
  },
  getValidate (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/BIOAdmin/API/V1/Common/GetValidate?v=' + params.v
    return new Promise((resolve, reject) => {
      resolve(postUrl)
    })
  },
  identifyLogin (params) {
    let postUrl = 'https://ai.forestrycat.com/auth/oauth/token'
    return HttpUtil.postlogin(postUrl, params)
  }
}
export default userApi
